/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.beans;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author pguerrero
 * CREATE TABLE Vehicle (
    marca character(15) NOT NULL,
    tipus character(15) NOT NULL,
    num_chasis character(20) NOT NULL,
    model character(15) NOT NULL,
    matricula character(8) NOT NULL,
    color character(10) NOT NULL,
    anio date NOT NULL,
    numReparacio integer NOT NULL
    );
 */
public class Vehicle implements Serializable{
    
    private static final long serialVersionUID = 1L;
    private String marca;
    private String tipus;
    private String num_chasis;
    private String model;
    private String matricula;
    private String color;
    private Date anio;
    private int numReparacio;
    private int idVehicle;

    public Vehicle() {
    }

    public Vehicle(String marca, String tipus, String num_chasis, String model, String matricula, String color, Date anio, int numReparacio, int idVehicle) {
        this.marca = marca;
        this.tipus = tipus;
        this.num_chasis = num_chasis;
        this.model = model;
        this.matricula = matricula;
        this.color = color;
        this.anio = anio;
        this.numReparacio = numReparacio;
        this.idVehicle = idVehicle;
    }

    public String getMarca() {
        return marca;
    }

    public String getTipus() {
        return tipus;
    }

    public String getNum_chasis() {
        return num_chasis;
    }

    public String getModel() {
        return model;
    }

    public String getMatricula() {
        return matricula;
    }

    public String getColor() {
        return color;
    }

    public Date getAnio() {
        return anio;
    }

    public int getNumReparacio() {
        return numReparacio;
    }
    
    public int getIdVehicle() {
        return idVehicle;
    }
        
    public void setMarca(String marca) {
        this.marca = marca;
    }

    public void setTipus(String tipus) {
        this.tipus = tipus;
    }

    public void setNum_chasis(String num_chasis) {
        this.num_chasis = num_chasis;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setMatricula(String matricula) {
        this.matricula = matricula;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void setAnio(Date anio) {
        this.anio = anio;
    }

    public void setNumReparacio(int numReparacio) {
        this.numReparacio = numReparacio;
    }
    
    public void setIdVehicle(int idVehicle) {
        this.idVehicle = idVehicle;
    }
}
